<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>js01</title>
    </head>
    <body>

        <script>
/* 
            console.log("Hello!");
            console.log(window);

            //window.alert("大家好！");

            var ok = confirm("您确认要干某事吗？");

            console.log(ok);

            setTimeout('alert("我来晚了！")',2000);

            var num = parseInt("abc");
            console.log(num);
            if(isNaN(num)){
                alert("转换失败！");
            }
            //console.log(num+1);
 */
            var num = eval("7*8");
            console.log(num);

            eval('var k = 123');

            console.log(k);
            
        </script>


    </body>
</html>